import { Component } from "react";
import { Route, Switch } from "react-router-dom";
import RTabBar from "../../components/TabBar";
import "./style/index.css";
import Index from "../Index";
import HouseList from "../HouseList";
import News from "../News";
import Profile from "../Profile";
export default class Home extends Component {
  render() {
    return (
      <div className="container-home">
        <div className="body">
          <Switch>
            <Route exact path="/home" component={Index} />
            <Route path="/home/houselist" component={HouseList} />
            <Route path="/home/news" component={News} />
            <Route path="/home/profile" component={Profile} />
          </Switch>
        </div>
        <div className="bottom">
          <RTabBar />
        </div>
      </div>
    );
  }
}
